package com.css.fxfzysx.modules.vaAnalysis.controller;

import com.css.fxfzysx.base.response.RestResponse;
import com.css.fxfzysx.modules.cztDataMange.vo.QueryBacInformationVo;
import com.css.fxfzysx.modules.vaAnalysis.service.CsVulnerabilityService;
import com.css.fxfzysx.modules.vaolEngineering.entity.MtolProjectEntity;
import com.css.fxfzysx.modules.vaomeFacilities.entity.CipvMatrixEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("csVulnerability")
public class CsVulnerabilityController {

    @Autowired
    private CsVulnerabilityService csVulnerabilityService;

    /**
     * 建筑物易损性综合统计
     */
    @GetMapping("buildingCsVulnerability")
    public RestResponse buildingCsVulnerability(QueryBacInformationVo queryBacInformationVo) {
        return csVulnerabilityService.buildingCsVulnerability(queryBacInformationVo);
    }

    /**
     * 生命线工程易损性综合统计
     */
    @GetMapping("lifelineCsVulnerability")
    public RestResponse lifelineCsVulnerability(MtolProjectEntity mtolProjectEntity) {
        return csVulnerabilityService.lifelineCsVulnerability(mtolProjectEntity);
    }

    /**
     * 重大工程设施易损性综合统
     */
    @GetMapping("majorProjectsCsVulnerability")
    public RestResponse MajorProjectsCsVulnerability(CipvMatrixEntity cipvMatrixEntity) {
        return csVulnerabilityService.MajorProjectsCsVulnerability(cipvMatrixEntity);
    }
}
